﻿@model IEnumerable<ProjectManagement.Domain.Entities.ControllerAction>
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>权限列表</title>
<script src="../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/flexigrid.pack.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/flexigrid.css")" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	$("document").ready(function () {
		$('.flex1').flexigrid(
		{
			usepager: true,
			title: '权限列表',
			useRp: true,
			rp: 20,
			width: 1100,
			height: 450
		}
		)
	});
</script>
</head>
<body>
<div style="margin:0 auto">
	<table class="flex1">

		<thead>

			<tr>
				<th width="200" >主权限</th>
				<th width="900">二级权限</th>
			</tr>

		</thead>

		<tbody>
		@foreach (var item in Model)
		{
			<tr>
				<td>@item.Name</td>
				<td>
				@foreach (var seconds in (Html.DisplayPermissionHelper(item.ID)))
				{
					<span>@seconds&nbsp;|&nbsp;</span>
				}
			</td>
			</tr>
		}
		</tbody>

	</table>

</div>
</body>
</html>
